<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.springside.modules.security.springsecurity.SpringSecurityUtils" %>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><s:if test="id == null">创建</s:if><s:else>修改</s:else>客户</title>
	<%@ include file="/common/meta.jsp"%>
	<link href="${ctx}/css/default.css" type="text/css" rel="stylesheet"/>
	<link type="text/css" href="${ctx}/css/black-tie/jquery-ui-1.7.1.custom.css" rel="stylesheet" />	
	<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
	<script type="text/javascript" src="${ctx}/js/jquery-ui.js"></script>
	<script type="text/javascript">
	//	$(function(){
	//		$('#attitude').slider({
	//			steps: 10,
	//			  minValue: 0,
	//			  maxValue: 5
	//		});
	//	
	//		});
	</script>
</head>
<body>
<form action="customer!save.action" method="get">
<input type="hidden" name="id" value="${id}" />

<div id="listContent">
<table>
<s:if test="id == null">创建</s:if><s:else>修改</s:else>客户
<tr>
	<td>客户姓名</td>
	<td><input type="text" name="name" value="${name}"/></td>
</tr>
<tr>
	<td>客户年龄</td>
	<td><input type="text" name="age" value="${age}"/></td>
</tr>
<tr>
	<td>客户地址</td>
	<td><input type="text" name="address" value="${address}"/></td>
</tr>
<tr>
	<td>客户电话</td>
	<td><input type="text" name="tel" value="${tel}"/></td>
</tr>
<tr>
	<td>客户手机</td>
	<td><input type="text" name="mobile" value="${mobile}"/></td>
</tr>
<tr>
	<td>客户传真</td>
	<td><input type="text" name="fax" value="${fax}"/></td>
</tr>
<tr>
	<td>客户性别</td>
	<td><input type="text" name="gender" value="${gender}"/></td>
</tr>
<tr>
	<td>
	<s:select 
		label="所在公司"
       name="companyId"
       list="companyList"
       listKey="id"
       listValue="name"
	   multiple="false"
       size="1"
       required="true"
       />

	</td>
</tr>
<tr>
	<td>客户态度</td>
	
	<td><input type="text" id="attitude" name="attitude" value="${attitude}"/></td>
</tr>
<tr>
	<td>客户信誉</td>
	<td><input type="text" name="credibility" value="${credibility}"/></td>
</tr>

<td colspan="2">
			<input type="submit" value="提交" />&nbsp; 
			<input type="button" value="取消" onclick="history.back()"/>
</td>
</table>


</div>
</form>
</body>
</html>